-- GENERATED SPELL FOR [Chieftain Nek'rosh] --


function spell0_2091(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(6192,pUnit)
pUnit:RegisterEvent('Sorts_2091', 639, 1)
end

function spell1_2091(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_2091', 30299, 1)
end

function Sorts_2091(pUnit, Event)
local choix_sorts_2091 = math.random(0, 1)
if choix_sorts_2091 == 0 then
pUnit:RegisterEvent('spell0_2091', 1, 1)
end
if choix_sorts_2091 == 1 then
pUnit:RegisterEvent('spell1_2091', 1, 1)
end
end

function mob2091_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2091', math.random(1500, 3000), 1)
end

function mob2091_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2091_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2091_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2091, 1, 'mob2091_Action')
RegisterUnitEvent(2091, 2, 'mob2091_Leave')
RegisterUnitEvent(2091, 3, 'mob2091_Kill')
RegisterUnitEvent(2091, 4, 'mob2091_Die')
